package com.xc.hotelmgr.datapusherali.service.mybatis.impl;

import com.xc.hotelmgr.datapusherali.mapper.OpTaskDetailMapper;
import com.xc.hotelmgr.datapusherali.pojo.mybatis.OpTaskDetail;
import com.xc.hotelmgr.datapusherali.service.mybatis.OpTaskDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OpTaskDetailServiceImpl implements OpTaskDetailService {

    @Autowired
    private OpTaskDetailMapper opTaskDetailMapper;

    @Override
    public List<OpTaskDetail> listAll() {
        return opTaskDetailMapper.listAll();
    }

    @Override
    public OpTaskDetail getById(Long id) {
        return opTaskDetailMapper.getById(id);
    }

    @Override
    public int insert(OpTaskDetail opTaskDetail) {
        return opTaskDetailMapper.insert(opTaskDetail);
    }

    @Override
    public int insertIgnoreNull(OpTaskDetail opTaskDetail) {
        return opTaskDetailMapper.insertIgnoreNull(opTaskDetail);
    }

    @Override
    public int update(OpTaskDetail opTaskDetail) {
        return opTaskDetailMapper.update(opTaskDetail);
    }

    @Override
    public int updateIgnoreNull(OpTaskDetail opTaskDetail) {
        return opTaskDetailMapper.updateIgnoreNull(opTaskDetail);
    }

    @Override
    public int delete(OpTaskDetail opTaskDetail) {
        return opTaskDetailMapper.delete(opTaskDetail);
    }
}
